import request from '@/utils/request'
//按条件查询型式物料绑定信息
export function getListTypes(params) {
    return request({
      url: '/qcmasterdata/typeMaterial/list',
      method: 'get',
      params
    })
  }
  //型式物料绑定
export function typeMaterialBind(data) {
    return request({
      url: '/qcmasterdata/typeMaterial/bind',
      method: 'post',
      data
    })
  }
    //型式物料解绑
export function unBinding(params) {
    return request({
      url: `/qcmasterdata/typeMaterial/unBinding/${params}`,
      method: 'delete'
    })
  }
      //共享检验项数据项
export function materialInspectionItemList(params) {
  return request({
    url: '/ny-iqc/materialInspectionItem/list',
    method: 'get',
    params
  })
}
  //共享检验项数据详情
  export function materialInspectionItemGetItemInfo(params) {
    return request({
      url: `/ny-iqc/materialInspectionItem/getItemInfo/${params}`,
      method: 'get'
    })
  }